<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="/">
		<kml xmlns="http://www.opengis.net/kml/2.2">
			<Document>
				<xsl:for-each select="//MESSAGE">
					<Placemark>
						<name>
							Post number:<xsl:value-of select="@id" />
						</name>
						<description>
							<xsl:value-of select="./CONTENT/text()" />
						</description>
						<Point>
							<coordinates>
								<xsl:value-of select="./LOCATION/@long"/>
								<xsl:value-of select="./LOCATION/@lat"/>,
							</coordinates>
						</Point>
					</Placemark>
				</xsl:for-each>
			</Document>
		</kml>
	</xsl:template>
</xsl:stylesheet>
